package com.fh.service.financial;

import com.fh.dao.DaoSupport;
import com.fh.entity.Page;
import com.fh.util.PageData;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;


@Service("financialService")
public class FinancialService {

    @Resource(name = "daoSupport")
    private DaoSupport dao;



    public List<PageData> BorrowerList(Page page) throws Exception {
        return (List<PageData>) dao.findForList("FinancialMapper.BorrowerdatalistPage", page);
    }

    public List<PageData> BorrowerListPD(PageData pd) throws Exception {
        return (List<PageData>) dao.findForList("FinancialMapper.Borrowerdatalist", pd);
    }

    public PageData findShowData(PageData pd) throws Exception {
        return (PageData) dao.findForObject("FinancialMapper.findShowData", pd);
    }
   /**
        *
        * @Title:
        * @reason 还款人 --待放款--列表
        * @author :  陈豪
        * @date  2018/8/8
        */
    public List<PageData> FinancialdatalistPage(Page page) throws Exception {
        return (List<PageData>) dao.findForList("FinancialMapper.FinancialdatalistPage", page);
    }

    public void savePrice(PageData pageData) throws Exception {
        dao.save("FinancialMapper.savePrice", pageData);
    }
   /**
        *
        * @Title:  还款人-  应收/已收列表
        * @reason
        * @author :  陈豪
        * @date  2018/8/8
        */
    public List<PageData> ReceivabledatalistPage(Page page) throws Exception {
        return (List<PageData>) dao.findForList("FinancialMapper.ReceivabledatalistPage", page);
    }
    /**
     *
     * @Title:  还款人-  逾期-列表
     * @reason
     * @author :  陈豪
     * @date  2018/8/8
     */
    public List<PageData> PendingMoneyListPage(Page page) throws Exception {
        return (List<PageData>) dao.findForList("FinancialMapper.PendingMoneylistPage", page);
    }
    /**
     *
     * @Title:  还款人-  逾期-列表
     * @reason
     * @author :  陈豪
     * @date  2018/8/8
     */

    public List<PageData> beOverdueListPage(Page page) throws Exception {
        return (List<PageData>) dao.findForList("FinancialMapper.beOverduelistPagePage", page);
    }

    public PageData findYW(PageData pd) throws Exception {
        return (PageData) dao.findForObject("FinancialMapper.findYW", pd);
    }

    public List<PageData> ywlistPage(Page page) throws Exception {
        return (List<PageData>) dao.findForList("FinancialMapper.ywlistPage", page);
    }

    public PageData findHK(PageData pd) throws Exception {
        return (PageData) dao.findForObject("FinancialMapper.findHK", pd);
    }

    public List<PageData> hklistPage(Page page) throws Exception {
        return (List<PageData>) dao.findForList("FinancialMapper.hklistPage", page);
    }

    public List<PageData> findAllMessage(PageData pd) throws Exception {
        return (List<PageData>) dao.findForList("FinancialMapper.findAllMessage", pd);
    }

    public PageData findhkPersion(PageData pd) throws Exception {
        return (PageData) dao.findForObject("FinancialMapper.findhkPersion", pd);
    }

    public PageData findShowPrice(PageData pd) throws Exception {
        return (PageData) dao.findForObject("FinancialMapper.findShowPrice", pd);
    }

    public PageData findBorrower(PageData pd) throws Exception {
        return (PageData) dao.findForObject("FinancialMapper.findBorrower", pd);
    }


}

